import React, { Component } from 'react';
import { View, Text, Alert } from 'react-native';
import { observer } from 'mobx-react';
import { List } from 'antd-mobile';
import { Actions } from 'react-native-router-flux';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { age } from '../../../../utils';
import styles from './style';

const Item = List.Item;
const alert = Alert.alert;

@observer
class MemberDetail extends Component {
  removeMember = (customerId, id) => {
    alert('删除保单', `您确定要删除保单吗 ?`, [
      {
        text: '取消',
      },
      {
        text: '删除',
        onPress: () => {
          this.props.store.remove.bind(this.props.store, customerId, id)();
          Actions.pop();
        },
        style: { color: '#f00' }
      }
    ]);
  };
  render() {
    return (
      <View style={styles.wrap}>
        <View style={styles.top}>
        <Text>{JSON.stringify(this.props.policy)}</Text>
        </View>
      </View>
    );
  }
}

export default MemberDetail;
